<?php
    $grupo = $session->read('Auth.User.username');
	$entidadeS =$session->read('Entidade'); 
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>jobsitesoftware.com</title>
        <?php
            echo $this->Html->css('default_stylesheet');
            echo $this->Html->css('stylesheet');
            echo $this->Html->script('jquery-1.6.2.min');
        ?>

</head>
<body>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td width="0%" class="shadow_left"><img src="/img/default/page_shadow_left.gif" width="14" height="1"></td>
    <td width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tbody><tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tbody><tr>
            <td valign="bottom" class="header"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tbody><tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tbody><tr>
                    <td><img src="/img/default/logo.gif" width="267" height="37"><br><span id="beta">Versão Beta...</span></td>
                    <td><div align="right" class="new_jobsite_1">Dezenas de ofertas de emprego esperam por si...</div></td>
                  </tr>
                </tbody></table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><table border="0" align="left" cellpadding="0" cellspacing="0">
                  <tbody><tr>
                    <td><div id="menu2"><?php echo $this->Html->link(('Home'),array('controller'=>'pages','action'=>'home'))?></div></td>
                    <td>&nbsp;</td>
                    <td><div id="menu"><?php if(isset($grupo))echo $this->Html->link(sprintf('Candidatos'), array('controller'=>'candidatos','action' => 'index'),array('id'=>'estudantes','onfocus'=>'this.blur()'));else echo $this->Html->link(sprintf('Candidatos'), array('controller'=>'candidatos','action' => 'login'),array('id'=>'candidatos','onfocus'=>'this.blur()'));?></div></td>
                    <td>&nbsp;</td>
                    <td><div id="menu"><a href="" onfocus="this.blur()">Publicar curriculo</a></div></td>
                    <td>&nbsp;</td>
                    <td><div id="menu"><?php if(isset($entidadeS) && !empty($entidadeS['Empresa']))echo $this->Html->link(sprintf('Empresas'), array('controller'=>'empresas','action' => 'empresa'),array('id'=>'estudantes','onfocus'=>'this.blur()'));else echo $this->Html->link(sprintf('Empresas'), array('controller'=>'empresas','action' => 'registro'),array('id'=>'candidatos','onfocus'=>'this.blur()'));?></div></td>
                    <td>&nbsp;</td>
                    <td><div id="menu"><a href="" onfocus="this.blur()">Publicar Vagas</a></div></td>
                    <td>&nbsp;</td>
                    <td><div id="menu"><a href="" onfocus="this.blur()">Pesquisar vagas</a></div></td>
                    <td>&nbsp;</td>
                  <td><div id="menu"><a href="" onfocus="this.blur()">Anuncie Aqui</a></div></td>
                    <td>&nbsp;</td>
                   <!-- <td><div id="menu"><a href="" onfocus="this.blur()">Sobre nos</a></div></td>-->
                  </tr>
                </tbody></table></td>
              </tr>
            </tbody></table></td>
          </tr>
          <tr>
            <td class="sub_menu_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tbody><tr>
                <td class="new_jobsite_3">Criar alertas automáticos</td>
                <td><div align="right" class="new_jobsite_2">Empregadores:- Entrar | Registrar | Publicar Vaga | Pesquisar Currículos | Hiring Services</div></td>
              </tr>
            </tbody></table></td>
          </tr>
        </tbody></table></td>
      </tr>
       <tr>
        <td class="middle_body">
      <?php echo $this->Session->flash(); ?>
      <?php echo $this->Session->flash('auth');?>
     <?php echo $content_for_layout;?>
            </td>
      </tr>
      <tr>
        <td class="footer"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tbody><tr>
            <td><table border="0" align="left" cellpadding="0" cellspacing="0">
              <tbody><tr>
                <td><table border="0" align="left" cellpadding="0" cellspacing="0">
                  <tbody><tr>
                    <td height="20" class="new_jobsite_5">Sobre Nós&nbsp; |&nbsp; Termo de Uso&nbsp; |&nbsp; Política de Privacidade&nbsp; |&nbsp; Contacte-nos&nbsp; |&nbsp; RSS<br></td>
                    <td width="20"><div align="right"><img src="/img/default/rss.gif" width="15" height="15"></div></td>
                  </tr>
                </tbody></table></td>
              </tr>
              <tr>
                <td height="20" class="new_jobsite_5">Copyright &copy; 2010 MOZEmpregos.com</td>
              </tr>
            </tbody></table></td>
            <td><table border="0" align="right" cellpadding="3" cellspacing="0">
              <tbody><tr>
                <td><img src="/img/default/facebook.gif" width="20" height="20"></td>
                <td><img src="/img/default/twitter.gif" width="20" height="20"></td>
                <td><img src="/img/default/share.gif" width="125" height="16"></td>
              </tr>
            </tbody></table></td>
          </tr>
        </tbody></table></td>
      </tr>
    </tbody></table></td>
    <td width="0%" class="shadow_right"><img src="/img/default/page_shadow_right.gif" width="14" height="1"></td>
  </tr>
</tbody></table>


<div id="shadowMeasureIt"></div><div id="divCoordMeasureIt"></div><div id="divRectangleMeasureIt"><div id="divRectangleBGMeasureIt"></div></div><script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-24472124-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script></body></html>